package deibay.client.gui;

import javax.swing.ImageIcon;

import deibay.client.ItemObject;

public class ItemObjectIcon implements ItemObject{

	private String item = null;
	private String id = null;
	
	public ItemObjectIcon(String item, String id)
	{
		this.item = item;
		this.id = id;
	}
	
	public String getItemName()
	{
		return this.item;
	}
	
	public String toString()
	{
		return this.item.toString();
	}	
	
	public ImageIcon getIcon()
	{
		return new ImageIcon(this.getClass().getResource("/images/cart.png"));
	}

	public String getItemId() {		
		return id;
	}

}
